package roguelike.screens;

import java.awt.event.KeyEvent;
import asciiPanel.AsciiPanel;

public class LoseScreen implements Screen
{
    @Override
    public void displayOutput(AsciiPanel terminal)
    {
        terminal.write("You lose!", 1, 1);
        terminal.writeCenter("--- Press [Enter] to restart. ---", 22);
    }
    
    @Override
    public Screen respondToUserInput(KeyEvent key)
    {
        return key.getKeyCode() == KeyEvent.VK_ENTER ? new StartScreen() : this;
    }
}